#include "StdAfx.h"
#include "SerialProtocolHandler.h"

/*
13:16:22:74 --> <ENQ>
13:17:56:33 <-- <ACK>

13:17:56:35 --> <STX>1H|\^||HELQS2000W|^QuickScan 2000 WIN^Version 2.10 \18^SN 
13:17:57:35 --> 600300101|||<CR><ETX>F1<CR><LF>
13:17:57:66 <-- <ACK>

13:17:57:67 --> <STX>2Q|1|00001<CR>L|1<CR><ETX>B3<CR><LF>
13:17:58:02 <-- <ACK>

13:17:58:05 --> <EOT>


13:17:58:42 <-- <ENQ>
13:17:58:44 --> <ACK>

13:17:58:46 <-- <STX>1H|\^&||HELIETEST<CR><ETX>84<CR><LF>
13:17:58:88 --> <ACK>

13:17:58:89 <-- <STX>2P|1|||ROL905938|Rollins, Charles||1-11-1940|M|white||||Ki
13:17:59:94 <-- llian, T.|11||5' 10"|218||||||||Room 2843|||||||||<CR><ETX>A0<CR>
13:18:00:96 <-- <LF>
13:18:00:97 --> <ACK>

13:18:01:00 <-- 3L|1|N<CR><ETX>06<CR><LF><EOT>

------------------------------------------------------------------------

13:18:16:02 --> <ENQ>
13:18:25:52 <-- <ACK>

13:18:25:53 --> <STX>1H|\^||HELQS2000W|^QuickScan 2000 WIN^Version 2.10 \18^SN 
13:18:26:60 --> 600300101|||<CR><ETX>F1<CR><LF>
13:18:26:91 <-- <ACK>

13:18:26:94 --> <STX>2Q|1|00002<CR>L|1<CR><ETX>B4<CR><LF>
13:18:27:31 <-- <ACK>

13:18:27:33 --> <EOT>


13:18:27:35 <-- <ENQ>
13:18:27:36 --> <ACK>

13:18:27:39 <-- <STX>1H|\^&||HELIETEST<CR><ETX>84<CR><LF>
13:18:27:83 --> <ACK>

13:18:27:85 <-- <STX>2P|1|||DOY132441|Doyle, Alice||10-12-1920|F|black||||Thorp
13:18:28:97 <-- e, C.|11||5' 4"|103||||||||Room 2120|||||||||<CR><ETX>23<CR><LF>
13:18:29:92 --> <ACK>

13:18:29:94 <-- <STX>3L|1|N<CR><ETX>06<CR><LF>
13:18:30:19 --> <ACK>

13:18:30:20 <-- <EOT>

------------------------------------------------------------------------

13:18:38:16 --> <ENQ>
13:18:38:19 <-- <ACK>

13:18:38:20 --> <STX>1H|\^||HELQS2000W|^QuickScan 2000 WIN^Version 2.10 \18^SN 
13:18:39:33 --> 600300101|||<CR><ETX>F1<CR><LF>
13:18:39:67 <-- <ACK>

13:18:39:69 --> <STX>2Q|1|00003<CR>L|1<CR><ETX>B5<CR><LF>
13:18:40:09 <-- <ACK>

13:18:40:13 --> <EOT>


13:18:40:14 <-- <ENQ>
13:18:40:16 --> <ACK>

13:18:40:19 <-- <STX>1H|\^&||HELIETEST<CR><ETX>84<CR><LF>
13:18:40:66 --> <ACK>

13:18:40:67 <-- <STX>2P|1|||BER692788|Bernard, Charles||10-26-1966|M|black||||F
13:18:41:80 <-- ontenot, R.|11||5' 8"|174||||||||Room 2619|||||||||<CR><ETX>E7<CR>
13:18:42:86 <-- <LF>
13:18:42:89 --> <ACK>

13:18:42:91 <-- <STX>3L|1|N<CR><ETX>06<CR><LF>
13:18:43:16 --> <ACK>

13:18:43:17 <-- <EOT>
*/

struct Packet
{
	String^ Information;
	String^ Metadata;
}

#define CONTROL_ENQ '\x05'
#define CONTROL_ACK '\x06'
#define CONTROL_CR '\x0D'
#define CONTROL_LF '\x0A'
#define CONTROL_EOT '\x04'
#define CONTROL_STX '\x02'
#define CONTROL_ETX '\x03'

SerialProtocolHandler::SerialProtocolHandler(void)
{
}

void SerialProtocolHandler::Write(System::String^ data)
{
}

System::String^ SerialProtocolHandler::Read()
{
	return L"";
}
